/**
 * Author shuqi
 * Rev
 * Date: 2019-12-13 11:15
 * <p>
 * Copyright (C) 2019 Seeyon, Inc. All rights reserved.
 * <p>
 * This software is the proprietary information of Seeyon, Inc.
 * Use is subject to license terms.
 * @company seeyon.com
 * @since V5 V8.0
 * @author shuqi
 */
package com.shuqi.tools.utils;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.project.Project;

import static com.shuqi.tools.utils.Constants.Notification_GID;

/**
 * @date 2019-12-13 11:15
 * @since V5 V8.0
 * @author shuqi
 */
public class NotifyUtils {

	public static void waring( String msg, Project project) {
		notify(msg,project,NotificationType.WARNING);
	}
	public static void error(String msg, Project project) {
		notify(msg,project,NotificationType.ERROR);
	}
	public static void info(String msg, Project project) {
		notify(msg,project,NotificationType.INFORMATION);
	}
	private static void notify(String msg, Project project,NotificationType type) {
		Notification nodt = new Notification(Notification_GID, "CMP Helper", msg, type);
		nodt.notify(project);
	}
}
